package com.org.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.org.model.AgreementDetail;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;


/**
 * date: 2022/10/19 14:53
 * @author admin
 */
@Repository
public interface AgreementDetailMapper extends BaseMapper<AgreementDetail> {

    /**
     * 保存协议
     * @param agreementDetail
     * @return
     */
    void save(AgreementDetail agreementDetail);

    /**
     * 通过协议编号查询协议
     * @param agreementNo
     * @return
     */
    AgreementDetail queryByAgreementNo(@Param("agreementNo") String agreementNo);
}
